﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Drawing;
using System.Windows.Forms;
using YArchitech.LIB;

namespace YJKMaterialStatistic
{
	public partial class DlgSetStandardLevel : System.Windows.Forms.Form
	{
		public DlgSetStandardLevel()
		{
			this.InitializeComponent();
			new YJKProcessTools().ShowInTaskbarChange(this);
		}

		private void btnStandardFloor_Click(object sender, EventArgs e)
		{
			List<TreeListViewItem> list = this.LevelListSelectedItems();
			List<string> list2 = new List<string>();
			foreach (TreeListViewItem treeListViewItem in list)
			{
				list2.Add(treeListViewItem.Text);
			}
		}

		private List<TreeListViewItem> LevelListSelectedItems()
		{
			List<TreeListViewItem> list = new List<TreeListViewItem>();
			foreach (object obj in this.treeListView.SelectedItems)
			{
				TreeListViewItem treeListViewItem = (TreeListViewItem)obj;
				if (treeListViewItem.Level == 0)
				{
					list.Add(treeListViewItem);
				}
			}
			return list;
		}

		private void btnRename_Click(object sender, EventArgs e)
		{
		}

		private void btnRestore_Click(object sender, EventArgs e)
		{
			this.LevelListSelectedItems();
		}

		private void UpdateLevelsListInfo()
		{
			if (!this.treeListView.Enabled)
			{
				return;
			}
			if (this.treeListView.Items.Count > 0)
			{
				this.treeListView.Items[0].Selected = true;
			}
		}

		private Dictionary<string, List<string>> m_StandardLevels = new Dictionary<string, List<string>>();
	}
}
